<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>声明（创建）对象</title>
</head>

<body>
    <h2>JavaScript 对象</h2>
    <p id="demo"></p>
    <script>
        var person = {
            firstName: "wang",
            lastNmae: "yufei",
            age: 18,
            eyeColor: "black",
        };
        document.getElementById("demo").innerHTML = person.firstName + "is" + "person .age" + "years old.";
    </script>
</body>

</html>